package com.example.knight.impl2;

import java.io.PrintStream;

import com.example.knight.Quest;


public class SlayDragonQuest implements Quest {

	/**
	 * 此处通过spring，在配置中注入PrintStream
	 */
	private PrintStream stream;

	public SlayDragonQuest(PrintStream stream) {
		this.stream = stream;
	}

	public void embark() {
		stream.println("Embarking on quest to slay the dragon!");
	}

}
